<h1>Listing users</h1>

<table>
  <tr>
    <th>Login</th>
    <th>Password</th>
    <th>Mail</th>
    <th>Admin</th>
    <th>Mail notification</th>
    <th>Salt</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%= user.login %></td>
    <td><%= user.password %></td>
    <td><%= user.mail %></td>
    <td><%= user.admin %></td>
    <td><%= user.mail_notification %></td>
    <td><%= user.salt %></td>
    <td><%= link_to 'Show', user %></td>
    <td><%= link_to 'Edit', edit_user_path(user) %></td>
    <td><%= link_to 'Destroy', user, :method => :delete, :data => { :confirm => 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New User', new_user_path %>
